<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta name="viewport"
          content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>登陆</title>
    <link rel="stylesheet" href="../assets/css/common.css">
    <link rel="stylesheet" href="../assets/css/app.css">
    <link rel="icon" type="image/x-icon" href="../assets/images/logo.png">
</head>
<body>
    <div class="page login">
        <form id="form" class="login-form" action="/login" method="POST">
            <img src="../assets/images/logo.png" alt="" class="login-logo">
            <div class="login-title">用户中心</div>
            <input class="input login-input login-username" id="userAcc" name="userAcc" type="text" th:value="${userAcc}" placeholder="请输入用户名">
            <input class="input login-input login-password" id="showPwd" type="password" placeholder="请输入密码" onblur="handleEncodePwd()">
            <input class="input login-input" id="password" name="pwd" type="hidden" placeholder="请输入密码">
            <input class="input login-input" id="from" name="from" th:value="${from}" type="text" style="display: none;">
            <label class="label" for="ifRemember">
                <input class="checkbox login-checkbox" type="checkbox" name="ifRemember" id="ifRemember" value="true" th:attr="checked=${ifRemember eq true ? true : false}">
                记住密码
            </label>
            <input id="isogeny" type="hidden">
            <div id="error" class="error" th:text="${errorMsg}">${errorMsg}</div>
            <button class="btn btn__primary login-btn" onclick="handleLogin(event)">登 录</button>
        </form>
        <input id="publicKey" type="hidden" th:value="${publicKey}">
    </div>
    <script src="../assets/js/encrypt.js"></script>
    <script src="../assets/js/login.js"></script>
</body>
</html>